import request from '@/utils/request'

export function doctorClothesList(query) {
  return request({
    url: '/doctorClothes/getList.json',
    method: 'get',
    params: query
  })
}

export function doctorClothesGetByCode(query) {
  return request({
    url: '/doctorClothes/getByCode.json',
    method: 'get',
    params: query
  })
}

export function doctorClothesDelete(query) {
  return request({
    url: '/doctorClothes/delete.json',
    method: 'get',
    params: query
  })
}

export function doctorClothesUpdate(opt) {
  return request({
    url: '/doctorClothes/update.json',
    method: 'post',
    data: {
      id: opt.id,
      categoryId: opt.categoryId,
      barCode: opt.barCode
    }
  })
}

export function doctorClothesAdd(opt) {
  return request({
    url: '/doctorClothes/add.json',
    method: 'post',
    data: {
      doctorId: opt.doctorId,
      categoryId: opt.categoryId,
      barCode: opt.barCode
    }
  })
}
